<?php echo $this->Form->create('Empleados', array('action' => 'empleados')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE SUCURSALES</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>NOMBRE</th>
                    <th>DIRECCION</th>
                    <th>TELEFONO</th>
                    <th>ACCIONES</th>
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                <?php $i=0;foreach ($data as $sucursal): ?>

            <tr <?php echo fmod($i, 2) ? "" : "class='bg'" ?>>
              <td><?php echo $sucursal['Sucursale']['nombre']?></td>
              <td><?php echo $sucursal['Sucursale']['direccion']?></td>
              <td><?php echo $sucursal['Sucursale']['telefono']?></td>
             
              <td style="font-size:10px;">
              <?php echo $this->Html->link($this->Html->image("iconos/edit.png", array("alt" =>'Editar', 'title' => 'Editar')), array('action' => 'editar', $sucursal['Sucursale']['id']),array('escape' => false)); ?>
              <?php echo $this->Html->link($this->Html->image("iconos/elim.png", array("alt" =>'Eliminar', 'title' => 'Eliminar')), array('action' => 'eliminar', $sucursal['Sucursale']['id']),array('escape' => false), 
                        ("Desea eliminar realmente??")); ?>
              
              
              <?php //echo $this->Html->link('MODIFICAR', array('action'=>'editar', $sucursal['Sucursale']['id']),array('class'=>'inner_a')); ?> 
              <?php //echo $this->Html->link('ELIMINAR', array('action'=>'eliminar', $sucursal['Sucursale']['id']),array('class'=>'inner_a')); ?></td>
            </tr>
                <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div> 


  